package com.example.demo.service;

import com.example.demo.entity.Storage;
import com.example.demo.service.helper.StorageStatus;

import java.util.List;

public interface StorageService {

    int createStorage(Storage storage);

    int deleteStorage(Integer sid);

    void logicalDeleteStorage(Integer sid);

    int updateStorage(Storage storage);

    Storage findStorageById(Integer sid);

    List<Storage> findAllValidStorages();

    List<Storage> findStoragesByCompanyId(Integer cid);

    List<Storage> findStoragesByPort(String portName);

    StorageStatus getStorageStatus(Integer sid);

    boolean checkStorageCapacity(Integer sid, double additionalWeight, int additionalQuantity);
}
